package com.nc.delivery_project.client.user_details;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.*;

/**
 * Created by miroshnik on 1/9/2015.
 */
public class UserDetailsView extends Composite {

    interface UserDetailsViewUiBinder extends UiBinder<VerticalPanel, UserDetailsView> {
    }

    private static UserDetailsViewUiBinder uiBinder = GWT.create(UserDetailsViewUiBinder.class);

    @UiField
    VerticalPanel panel;
    
    @UiField
    Label userIdLbl;
    
    @UiField
    TextBox emailTxtBox;
    
    @UiField
    ListBox roleLstBox;
    
    @UiField
    Button saveBtn;
    
    @UiField
    Button removeBtn;
    
    @UiField
    Button resetPassBtn;
    
    private UserDetailsActivity presenter;

    public UserDetailsView() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    public void setPresenter(UserDetailsActivity presenter) {
        this.presenter = presenter;
    }

    public void start() {

    }
}
